#define _CRT_SECURE_NO_WARNINGS 1

#include "SListNode.h"

int main()
{
	SLTNode* plist = NULL;

	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPrint(plist);
	SLTPushFront(&plist, 0);
	SLTPushFront(&plist, -1);
	SLTPrint(plist);

	SLTNode* find = SLTFind(plist, -1);
	
	SLTEraseAfter(find);
	SLTPrint(plist);

	//SLTErase(&plist, find);
	//SLTPrint(plist);

	//SLTInsertAfter(find, -2);
	//SLTPrint(plist);

	//SLTInsert(&plist, find, 7);
	//SLTPrint(plist);

	//SLTPopFront(&plist);
	//SLTPopFront(&plist);
	//SLTPopFront(&plist);
	//SLTPopFront(&plist);
	//SLTPopFront(&plist);
	//SLTPrint(plist);
	//SLTPopFront(&plist);
	//SLTPrint(plist);

	//SLTPopBack(&plist);
	//SLTPopBack(&plist);
	//SLTPopBack(&plist);
	//SLTPopBack(&plist);
	//SLTPrint(plist);
	//SLTPopBack(&plist);
	//SLTPopBack(&plist);
	//SLTPrint(plist);

	SListDesTroy(&plist);

	return 0;
}